home *** CD-ROM | disk | FTP | other *** search
- Path: news1.h1.usa.pipeline.com!usenet
- From: grantp@usa.pipeline.com(Pete)
- Newsgroups: comp.lang.c++
- Subject: Re: Header Includes
- Date: 1 Jan 1996 03:03:18 GMT
- Organization: Pipeline USA
- Message-ID: <4c7itm$4ld@news1.usa.pipeline.com>
- NNTP-Posting-Host: pipe7.h1.usa.pipeline.com
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete)
- X-Newsreader: Pipeline USA v3.3.0
-
- On Jan 01, 1996 02:07:11 in article <Header Includes>, 'mckebp@cris.com
- (Rasta Mon)' wrote:
-
-
- > On a lot of my header includes, the headers refer to other headers,
- >and I find that sometimes I'm getting the same one referred to several
- >times when compiling. I think that if I compiled with each referred
- >header individually, the program realizes its mistake, but, during
- >compilation, there is the repetition.
-
- The common way is:
-
- - - - - file foo.h - - - - - -
-
- #if !defined(_foo_h_)
- #define _foo_h_
-
- .. declarations....
-
- #endif
-
-
- --
-
- Pete
-